package com.hotel.dao;

import com.hotel.pojo.GuestRegistration;
import org.springframework.stereotype.Component;

import java.util.ArrayList;

@Component
public interface GuestRegistrationMapper {

    int addGuestRegistration(GuestRegistration GuestRegistration);

    int deleteGuestRegistrationById(int id);

    int updateGuestRegistrationById(GuestRegistration GuestRegistration);

    GuestRegistration queryGuestRegistrationById(int id);

    ArrayList<GuestRegistration> queryAllGuestRegistration();

    GuestRegistration queryGuestRegistrationByPhone(String phone);
}
